import request from '@/utils/request'

// 查询用户违规列表
export function listUserViolation(query) {
  return request({
    url: '/system/userViolation/list',
    method: 'get',
    params: query
  })
}

// 查询用户违规详细
export function getUserViolation(id) {
  return request({
    url: '/system/userViolation/' + id,
    method: 'get'
  })
}

// 新增用户违规
export function addUserViolation(data) {
  return request({
    url: '/system/userViolation',
    method: 'post',
    data: data
  })
}

// 修改用户违规
export function updateUserViolation(data) {
  return request({
    url: '/system/userViolation',
    method: 'put',
    data: data
  })
}

// 删除用户违规
export function delUserViolation(id) {
  return request({
    url: '/system/userViolation/' + id,
    method: 'delete'
  })
}

// 导出用户违规
export function exportUserViolation(query) {
  return request({
    url: '/system/userViolation/export',
    method: 'get',
    params: query
  })
}